package xyz.yuanjilu.plug;

import com.riversoft.weixin.common.message.XmlMessageHeader;

import xyz.yuanjilu.entity.WeixinConfigEntity;

/**
 * 微信订阅号插件接口
 * @author 陈俊飞
 *
 */
public interface MPPlug {
		/**
		 * 支持的微信号
		 * @param weixincode
		 * @return
		 */
		public boolean superWeixinCode(WeixinConfigEntity weixinConfig);
		
		/**
		 * 支持的微信号
		 * @param weixincode
		 * @return
		 */
		public boolean superXmlMessageHeader(XmlMessageHeader xmlRequest,WeixinConfigEntity weixinConfig);
		
		/**
		 * 获取服务菜单
		 * @return
		 */
		public String getTextMenu(WeixinConfigEntity weixinConfig);
		
		/**
		 * 获取描述
		 * @return
		 */
		public String getDescribe(WeixinConfigEntity weixinConfig);
		
		/**
		 * 处理信息
		 * @return
		 */
		public XmlMessageHeader handle(String weixinUserId,XmlMessageHeader xmlRequest,XmlMessageHeader xmlResponse ,WeixinConfigEntity weixinConfig);
		
		/**
		 * 插件名
		 * @param weixincode
		 * @return
		 */
		public String getName(WeixinConfigEntity weixinConfig);
}
